<template>
  <div>
    <h1>
      {{(this.$route.params.id)}}
      <hr/>
      <img :src="img.replace('w.h','100.200')" alt="">
      <h2>{{nm}}</h2>
    </h1>
  </div>
</template>

<script>
import axios from "axios"
export default {
  layout:'detail',
  async asyncData() {
    let rs = await axios.get("http://127.0.0.1:8088/api/movie")
    console.log(rs.data)
    return {
      img:rs.data.img,
      nm:rs.data.nm
    }
  },
  mounted() {}
}
</script>

